/*
 * @Author: 哈兰德
 * @Description: 管理端api接口
 */
import API from './api'
import { get, post } from './http'
export default {
  queryDetail: p => post(API.QUERY_DETAIL, p),
  save: p => post(API.SAVE, p),
  queryGoodsInfo: p => post(API.QueryGoodsInfo, p),
  updateActivityInfo: p => post(API.UpdateActivityInfo, p),
  changeStatus: p => post(API.ChangeStatus, p),
  saveItem: p => post(API.SaveItem, p),
  copyAcitivity: p => post(API.CopyAcitivity, p),
  deleteActivityInfo: p => post(API.DeleteActivityInfo, p),
  queryActivityInfoList: p => post(API.QueryActivityInfoList, p),
  deleteItem: p => post(API.DeleteItem, p),
  queryItemList: p => post(API.QueryItemList, p),
  getActivityContent: p => post(API.GetActivityContent, p),
  deleteFloorSpu: p => post(API.DeleteFloorSpu, p),
  queryFloorSpu: p => post(API.QueryFloorSpu, p),
  uploadPicture: p => post(API.UploadPicture, p, 'file'),
  downloadGoodsInfo: p => post(API.DownloadGoodsInfo, p),
  updateActivityInfoNew: p => post(API.UpdateActivityInfoNew, p),
  saveNew: p => post(API.SAVENew, p),
  changeStatusNew: p => post(API.ChangeStatusNew, p),
  queryItemListNew: p => post(API.QueryItemListNew, p),
  copyAcitivityNew: p => post(API.CopyAcitivityNew, p),
  updateActivitySpu: p => post(API.UpdateActivitySpu, p),
  queryCouponList: p => post(API.QueryCouponList, p),
  queryCouponInfo: p => post(API.QueryCouponInfo, p),
  receiveCoupon: p => post(API.ReceiveCoupon, p),
  updateCouponSort: p => post(API.UpdateCouponSort, p),
  queryCounterData: p => post(API.QueryCounterData, p),
  queryCounterDataByCode: p => post(API.QueryCounterDataByCode, p),
  queryMonitorData: p => post(API.QueryMonitorData, p),
  queryServerCounter: p => post(API.QueryServerCounter, p),

  queryCouponPackageList: p => post(API.QueryCouponPackageList, p),
  addCouponPackage: p => post(API.AddCouponPackage, p),
  deleteCouponPackage: p => post(API.DeleteCouponPackage, p),
  updateActivityCouponPackage: p => post(API.UpdateActivityCouponPackage, p),
  searchCouponPackageList: p => post(API.SearchCouponPackageList, p),
  updateItem: p => post(API.UpdateItem, p),
  addActivityModuleInfo: p => post(API.AddActivityModuleInfo, p),
  saveCoupon: p => post(API.SaveCoupon, p),
  deleteCoupon: p => post(API.DeleteCoupon, p),
  relateConfigCode: p => post(API.RelateConfigCode, p)
}